import Vue from "vue";
import Router from "vue-router";
import Home from "../views/Home.vue";
import Sort from "../views/Sort.vue";
import BBT from "../views/BaoBaoTuan.vue";
import Order from "../views/Order.vue";
import Login from "../views/Login.vue";
import Register from "../views/register.vue";
import Ser from "../views/Search/search.vue";
import My from "../views/My.vue";


Vue.use(Router);

let router = new Router({
    routes: [
        { 
            path:'/',
            component:Home
        },
        {
            path:'/Home',
            component:Home
        },
        {
            path:'/Sort/:id',
            component:Sort
        },
        {
            path:'/BBT',
            component:BBT
        },
        {
            path:'/Order',
            component:Order
        },
        {
            path:'/Login',
            component:Login
        },
        {
            path:'/Register',
            component:Register
        },
        {
            path:'/Ser',
            component:Ser
        },
        {
            path:'/My',
            component:My
        },
    ]
})

export default  router;